package com.dbh.algorithm;

/**
 *  生产者和消费之之间的共享数据模型
 *
 * @author dongbanghui
 * @date 2018/06/22
 */
public final class PCData {

    private final int intData;

    public PCData(int d) {
        this.intData =d;
    }

    public PCData(String d) {
        this.intData = Integer.valueOf(d);
    }

    public int getData(){
        return intData;
    }

    @Override
    public String toString() {
        return "data:" + intData;
    }
}
